<?php

  // ------------->SITE VARIABLES

  $sitename = "TOPS - by EL17E ENTERPRISES";	

  $siteurl = "http://charlie.it.uts.edu.au/~pcmng";

  $adminemail = "tops@jonesbros.com.au";

  $adminname = "TOPS";


  // ------------->CUSTOMISATION VARIABLES

  $header ="header.inc";

  $body = "body.inc";

  $footer = "footer.inc";

  // ------------->HEADERS

  // -- 'welcome' header
  $H_w = "H_w.inc";

  // -- 'enquiry about product' header
  $H_eap = "H_eap.inc";

  // -- 'record new customer details' header
  $H_rncd = "H_rncd.inc";

  // -- 'change customer details' header
  $H_ccd = "H_ccd.inc";

  // -- 'order product' header
  $H_op = "H_op.inc";

  // -- 'enquiry on outstanding order' header
  $H_eooo = "H_eooo.inc";

  // -- 'cancel order' header
  $H_co = "H_co.inc";

  // -- 'record customer enquiry problem' header
  $H_rcep = "H_rcep.inc";

  // -- 'prepare customer demand report' header
  $H_pcdr = "H_pcdr.inc";

  // -- 'logout' header
  $H_lo = "H_lo.inc";
  
  // -- 'mailing list' header
  $H_ml = "H_ml.inc";

  // -- 'help' header
  $H_h = "H_h.inc";

// ------------->DATABASE VARIABLES

  // information needed to connect to mysql
  $dbServer = "sally";
  $dbName = "sdpg17";		// the name of the database
  $dbReadOnly = "sdpg17ro";	// Read Only access
  $dbReadOnlyPW = "Kc(sid:M";	// Read Only password
  $dbReadWrite = "sdpg17rw"; // Read and Write access
  $dbReadWritePW = "cnbSim9U"; // Read and Write password
  $dbAll = "sdpg17"; // All access with create/drop
  $dbAllPW = "Muz68pQ)";  // All access password

// ------------->CONNECT TO DATABASE FUNCTION

function connectToDb($server, $user, $password, $database)
{

  if (!mysql_connect("$server", "$user", "$password"))
    die("Cannot connect to the database");

  if(!mysql_select_db("$database"))
    die("Error - Couldn't open $dbname: ".mysql_error());

}
  

?>